package cn.dg.manager.common.interceptor;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * 扫扫学数据权限SQL
 * 
 * @author duzh
 * @version [版本号, 2015年11月13日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class DataAuthoritionSql implements Serializable
{
    /**
     * 注释内容
     */
    private static final long serialVersionUID = -8558366948626273910L;
    
    /**
     * SQL
     */
    private String sql;
    
    /**
     * 是否为空SQL语句
     */
    private boolean isNull;
    
    /**
     * 所有字段名称
     */
    private List<String> columns;
    
    public String getSql()
    {
        return sql;
    }
    
    public void setSql(String sql)
    {
        this.sql = sql;
    }
    
    public boolean isNull()
    {
        return isNull;
    }
    
    public void setNull(boolean isNull)
    {
        this.isNull = isNull;
    }
    
    public List<String> getColumns()
    {
        return columns;
    }
    
    public void setColumns(List<String> columns)
    {
        this.columns = columns;
    }
    
    @Override
    public String toString()
    {
        StringBuilder builder = new StringBuilder();
        builder.append("{sql=");
        builder.append(sql);
        builder.append(", isNull=");
        builder.append(isNull);
        builder.append(", columns=");
        builder.append(columns);
        builder.append("}");
        return builder.toString();
    }
}
